package com.xqboss.apps.dto.order;

import com.xqboss.apps.enums.user.PayTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 *     订单申请支付请求
 * </p>
 * @author Trent
 * @date 2023/8/28
 */
@Data
@ApiModel
public class WalletPayDto {

    @ApiModelProperty(value = "支付密码", required = true)
    @NotNull(message = "支付密码不正确")
    @Length(min = 6, max = 6, message = "请输入正确的支付密码")
    private String payPwd;

    @ApiModelProperty(value = "支付单号", required = true)
    @NotNull(message = "请输入支付单号")
    private String tradeId;

    @ApiModelProperty("订单号")
    private Long orderId;

    @ApiModelProperty("支付金额")
    @DecimalMin(value = "0", message = "支付金额错误")
    private BigDecimal price;

    @ApiModelProperty("支付信息，根据支付方式确定")
    private Object payInfo;

    @ApiModelProperty("是否需要校验密码")
    private Boolean isCheckPwd = true;

}
